e841ed
@@ -1228,6 +1228,7 @@
void skipRows(long items) throws IOException {
         BytesColumnVector result, final int batchSize) throws IOException {
       // Read lengths
       scratchlcv.isNull = result.isNull;  // Notice we are replacing the isNull vector here...
+      scratchlcv.ensureSize(batchSize, false);
       lengths.nextVector(scratchlcv, scratchlcv.vector, batchSize);
       int totalLength = 0;
       if (!scratchlcv.isRepeating) {
